#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework4_7.py
# author:wmf
# datetime:2021/4/12 19:54
# software: PyCharm
'''
this is function description
'''
# import module your need

# 7 使用python代码统计一个文件夹中所有文件的总大小

import os

path = os.getcwd()


def getAllFileSize(Path):
    size = 0
    for x in os.listdir(Path):
        size = size + os.path.getsize(x)
    print("该文件夹中所有文件的总大小为:%dKB" % size)


getAllFileSize(path)
